import { FlowConditionTypeEnum, names ,operators} from "@/enum/flowEnum"

// 获取操作符名称
export const getOptName = (index:any)=>{
    if(!operators.includes(index)) {
        return ""
    }
    return names[index]
}

// 获取值名称
export const getValName = (data:any)=>{
    if(!data) {
        return ""
    }
    return Array.isArray(data) ? data.map((item:any) => item.name).join(',') : ""
}


// 获取字段label
export const getFieldLabel = (field:string)=>{
    FlowConditionTypeEnum.INITIATOR_VAR_NAME
}